package com.liangZiVip.regionalAgentSystemApi;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

//@RestController
//@SpringBootApplication
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@ComponentScan(basePackages = { "com.liangZiVip"})
@EnableConfigurationProperties
@MapperScan("com.liangZiVip.regionalAgentSystemApi.*.dao")
public class Application {
//	@RequestMapping(value = "hello")
//	@ResponseBody
//	public String hello() {
//		return "hello spring boot";
//
//	}

	public static void main(String[] args) {
//		System.out.print("main");
		SpringApplication.run(Application.class, args);
	}
}
